package com.woniuxy.rbac.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @Auther: 老谭（<a href="http://www.woniuxy.com">蜗牛学苑</a>）
 */
public class SysUsernamePasswordToken implements AuthenticationToken {
    private String account;
    private String password;
    public SysUsernamePasswordToken(String account,String password){
        this.account=account;
        this.password=password;
    }


    @Override
    public Object getPrincipal() {
        return account;
    }

    @Override
    public Object getCredentials() {
        return password;
    }
}
